package com.wu.home.service;

import com.wu.home.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("userService")
public class UserServiceImpl implements UserService {

    @Autowired
    UserRepository userRepository;
    @Override
    public User queryUser(String username) {
        User user = this.userRepository.queryByUsername(username);
        return user;
    }
}
